
export const configFormItems = [
    {
        label: '名称',
        key: 'name',
        width: '',
        type: 'input',
    },
    {
        label: '页面路径',
        key: 'component',
        width: '180px',
        type: 'input',
    },
    {
        label: '路由地址',
        key: 'path',
        width: '150px',
        type: 'input',
    },
]
export const configFormData: any = {}
configFormItems.forEach(item => {
    configFormData[item.key] = ''
})

export const configFormRules = {
    name: [
        { required: true, message: '请输入名称', trigger: 'blur' },
        { min: 2, max: 8, message: '名称长度 2 到 8', trigger: 'blur' },
    ],
    component: [
        {
            required: true,
            message: '请输入组件地址',
            trigger: 'blur',
        },
    ],
    path: [
        {
            required: true,
            message: '请输入路由地址',
            trigger: 'blur',
        },
    ],
}